let obj = {
    name:'zhangsan',
    age:18,
    like:{
        a:'唱',
        b:'跳',
        c:'rap'
    }
}

let newObj = structuredClone(obj)// 依旧有缺陷，不能复制函数
newObj.like.d = '篮球'
console.log(obj)
console.log(newObj)